{% extends "learn_app/base.html" %}
{% block content %}
{{topic}}
<br>a new entry:
<form method="post" enctype="multipart/form-data">
    {% csrf_token %}
    {{form.as_p}}
    <button type ="submit" class="btn btn-primary">添加目录</button>
</form>
<a href="{% url 'learn_app:topic' topic.id %}">回到主题顶部</a>
{% endblock %}